package com.learning.spring.cloud.alibaba.feign.user.web.fallback;

import com.learning.spring.cloud.alibaba.feign.user.web.service.OrderFeignService;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * ClassName: OrderFeignServiceFallback
 * Description: 用户服务 Fallback
 * Date: 2021/7/25 23:03 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@Component
public class OrderFeignServiceFallback implements OrderFeignService {

    @Override
    public List<String> queryOrderByUserId(Long userId) {
        ArrayList<String> objects = new ArrayList<>();
        objects.add("默认商品");
        return objects;
    }
}
